{
    // class Axios{
    //     // 如果将constructor改成private或protected，在外部是无法实例化出对象的,除非用静态方法生成一个实例
    //     private constructor(){
    //         console.log("构造函数");
    //     }
    //     static make():Axios {
    //         return new Axios();
    //     }
    // }
    // const instance = Axios.make();
    // console.log(instance);
    // 单例模式，只初始化一次，适用于网站连接数据库
    var Axios_1 = /** @class */ (function () {
        function Axios() {
        }
        Axios.make = function () {
            if (Axios.instance == null) {
                console.log("初始化");
                Axios.instance = new Axios();
            }
            return Axios.instance;
        };
        Axios.instance = null;
        return Axios;
    }());
    var axios1 = Axios_1.make();
    var axios2 = Axios_1.make();
    var axios3 = Axios_1.make();
    var axios4 = Axios_1.make();
}
